
<div id="infobox-fullwidth" class="margin-left">
	 
 	<span><a href="<?php echo site_url('admincp/add_category');?>" class="add">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thêm mới</a> </span> <br /> 
 
	<table>
		<thead>
			<tr>
				<th>Tên game</th>
				<th>Ảnh minh họa</th>
				<th>Đường link</th>
				<th>Status</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
		<?php foreach($listgames as $cate):?>
			<tr>
				<td><?php if($cate->catetype == 1 ):?>
						Game
					<?php elseif($cate->catetype==2):?>
					Thông thường
					<?php else:?>
					Chưa xác định
					<?php endif;?>
				</td>
				<td><a href="<?php echo site_url('admincp/edit_category/'.$cate->id);?>"><?php echo $cate->catename?></a></td>
				<td><?php if($category != null):?> <?php foreach($category as $row):?>
				<?php if($row->id == $cate->cateroot):?> <?php echo $row->catename;?>
				<?php endif;?> <?php endforeach;?> <?php endif;?>
				</td> 
				<td>
					<a href="<?php echo site_url('admincp/del_cate/'.$cate->id);?>">Xóa</a>
				</td>
			</tr>
			<?php endforeach;?>

		</tbody>
	</table>
</div>
